package com.swinboo.im.fallback;

import com.huang.entity.result.HStringResult;
import com.huang.entity.result.ResponseEnum;
import com.huang.entity.result.ResultBuilder;
import com.swinboo.im.api.IMApi;
import org.springframework.stereotype.Component;

/**
 * @author Swinboo
 * @date 2022-03-13 11:52
 * @description:
 */

@Component
public class IMFallback implements IMApi {
    @Override
    public HStringResult<String> test(String str) {
        return ResultBuilder.failHSingle(ResponseEnum.SERVICE_RPC_TIME_OUT_ERROR);
    }
}
